﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.AspNetCore.Mvc;
using SaiLing.SingleSignOn.Domain.Entities.DataTransferObject;
using SaiLing.SingleSignOn.Domain.Entities.Enums;
using Microsoft.AspNetCore.Authorization;

namespace SaiLing.SingleSignOn.Application.Core.Controllers
{
    [Authorize("Web")]
    [Route("api/[controller]/[action]")]
    public class BaseController:Controller
    {
        public LogUser LogUser
        {
            get
            {
                //if (!string.IsNullOrEmpty(Token))
                //{
                //    var signinUser = UserCacheHelper.GetUserByCache(Token);
                    return new LogUser() { LogType = LogType.Administrator };
                //}
                //return null;
            }
        }
    }
}
